package com.han.fu.api.business.model.ao;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;

/**
 * 关注
 *
 * @author star
 * @date 2021-08-12
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class FollowAo {

    /**
     * 关注用户
     */
    @NotBlank(message = "关注用户不能为空")
    @Size(max = 20, message = "关注用户最长不能超过20")
    private String followId;

    /**
     * 操作(1:关注 2:取消)
     */
    @NotNull(message = "操作(1:关注 2:取消)不能为空")
    @Max(value = 2, message = "操作(1:关注 2:取消)数据不正确")
    @Min(value = 1, message = "操作(1:关注 2:取消)数据不正确")
    private int operation;

}